home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1732 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: newsfeed.internetmci.com!xmission!slc84
  2. From: zarahmla@xmission.com (Matt Smith)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: exec under Windows ?
  5. Date: Fri, 12 Jan 96 16:18:37 GMT
  6. Organization: Zarahemla Book Shoppe
  7. Message-ID: <4d61l8$ooo@news.xmission.com>
  8. References: <4d55hr$n9m@tic.sm.dsi.unimi.it>
  9. NNTP-Posting-Host: slc84.xmission.com
  10. X-Newsreader: News Xpress Version 1.0 Beta #3
  11.  
  12. In article <4d55hr$n9m@tic.sm.dsi.unimi.it>,
  13.    berola@dsi.unimi.it (simona berola) wrote:
  14.  
  15. Use WinExec.  you can execute either Windows or DOS programs.
  16. >
  17. >Excuse me for my school English, but I'm desperate with Borland C++ 3.0.
  18. >I need to know if there is a function or something else to execute a DOS 
  19. >program during the execution of another program written in C++ for 
  20. >Windows. 
  21. >I know that "exec" and  "system" do this, but only for program write for  
  22. >DOS and not for Windows.
  23. >Example:
  24. >
  25. >         DOS                               WINDOWS
  26. >
  27. >main()
  28. >{
  29. >   exec("edit");   ------------------>   it's not possible ?
  30. >}
  31. >or
  32. >
  33. >main()                                    I have no Compiling error
  34. >{                                         but i have 1 linker error
  35. >   system("edit"); ------------------>
  36. >}
  37. >
  38. >N.B:My "dos" program must only write on file, and not on screen
  39. >
  40. >                                           Thanks for your help
  41. >
  42. >e-mail: galvani@ghost.sm.dsi.unimi.it
  43. >
  44.  
  45. Thank you,
  46.  
  47.  
  48.  
  49. Matt Smith          <http://www.xmission.com/~zarahmla>
  50. =======================================================
  51. Zarahemla Book Shoppe   |  LDS Books, Music, Software
  52. zarahamla@xmission.com  |  Infobases, Genealogy and
  53. (801) 296-5944          |  Internet Links
  54.